--------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\wb614536\Downloads\replication\replication\code\../outputs/07d_AER_Tables_log.txt
  log type:  text
 opened on:  25 Jun 2026, 12:59:35
r; t=0.00 12:59:35

. 
. di "=================================================================="
==================================================================
r; t=0.00 12:59:35

. di "  07d_AER_Tables.do"
  07d_AER_Tables.do
r; t=0.00 12:59:35

. di "=================================================================="
==================================================================
r; t=0.00 12:59:35

. 
. /*==============================================================================
>   PART 1: READ RESULTS AND SHAPE TO WIDE
> ==============================================================================*/
. 
. import delimited "$out/07_RD_W1_W2_results.txt", clear delimiter(tab) ///
>     varnames(1) stringcols(1 2 3 4)
(encoding automatically selected: ISO-8859-1)
(14 vars, 260 obs)
r; t=0.14 12:59:35

. 
. destring coef se p n_eff, replace force
coef already numeric; no replace
se already numeric; no replace
p already numeric; no replace
n_eff already numeric; no replace
r; t=0.00 12:59:35

. 
. * Combine wave + spec into a single column key
. gen key = wave + "_" + spec
r; t=0.00 12:59:35

. keep outcome treatment key coef se p n_eff
r; t=0.00 12:59:35

. reshape wide coef se p n_eff, i(outcome treatment) j(key) string
(j = W1_no_ctrls W1_with_ctrls W2_no_ctrls W2_with_ctrls)

Data                               Long   ->   Wide
-----------------------------------------------------------------------------
Number of observations              260   ->   65          
Number of variables                   7   ->   18          
j variable (4 values)               key   ->   (dropped)
xij variables:
                                   coef   ->   coefW1_no_ctrls coefW1_with_ctrls ... coefW2_with_ctrls
                                     se   ->   seW1_no_ctrls seW1_with_ctrls ... seW2_with_ctrls
                                      p   ->   pW1_no_ctrls pW1_with_ctrls ... pW2_with_ctrls
                                  n_eff   ->   n_effW1_no_ctrls n_effW1_with_ctrls ... n_effW2_with_ctrls
-----------------------------------------------------------------------------
r; t=0.20 12:59:35

. 
. tempfile rd_wide
r; t=0.00 12:59:35

. save `rd_wide'
file C:\Users\wb614536\AppData\Local\Temp\ST_7cc4_000001.tmp saved as .dta format
r; t=0.00 12:59:35

. 
. /*==============================================================================
>   PART 2: BUILD AER-STYLE TABLE PER PANEL
> ==============================================================================*/
. 
. * Panels — outcomes by theme (order matters)
. local panels A B C D E F G H I J K
r; t=0.00 12:59:35

. local title_A "Economic well-being"
r; t=0.00 12:59:35

. local title_B "Labor market"
r; t=0.00 12:59:35

. local title_C "Services and rights"
r; t=0.00 12:59:35

. local title_D "Health"
r; t=0.00 12:59:35

. local title_E "Food security"
r; t=0.00 12:59:35

. local title_F "Housing"
r; t=0.00 12:59:35

. local title_G "Integration and trust"
r; t=0.00 12:59:35

. local title_H "Discrimination"
r; t=0.00 12:59:35

. local title_I "Migration intentions"
r; t=0.00 12:59:35

. local title_J "COVID impacts"
r; t=0.00 12:59:35

. local title_K "Financial access and digital"
r; t=0.00 12:59:35

. 
. local out_A jeea_index_wellbeing labour_income gasto_capita income_maxhh employed
r; t=0.00 12:59:35

. local out_B jeea_index_labor formal hora_semana
r; t=0.00 12:59:35

. local out_C jeea_index_services sisben subs bank govtr
r; t=0.00 12:59:35

. local out_D health_pca anx_depr
r; t=0.00 12:59:35

. local out_E index_food skip_meals went_without_food
r; t=0.00 12:59:35

. local out_F index_housing adequate_housing has_electricity has_water has_sewage
r; t=0.00 12:59:35

. local out_G index_integration belonging feel_integrated trust_col col_friends community_org
r; t=0.00 12:59:35

. local out_H index_discrim discrim_ever discrim_freq filed_complaint
r; t=0.00 12:59:35

. local out_I intend_stay plan_stay_5yr considered_return_ven
r; t=0.00 12:59:35

. local out_J index_covid covid_received_aid
r; t=0.00 12:59:35

. local out_K index_remit index_fin_access index_digital remit_now bank has_savings_account
r; t=0.00 12:59:35

. 
. * Pretty labels — sourced from shared dictionary
. include "_OutcomeLabels.do"

. /*==============================================================================
>   _OutcomeLabels.do  (helper, not run on its own)
> 
>   Defines polished, publication-ready labels for every outcome that appears
>   in figures and tables. Labels use the macro pattern `lbl_<outcome>`.
>   Visualization do files `include` this file and reference `lbl_<outcome>`
>   to print a pretty label rather than the raw Stata variable name.
> 
>   Categorical/binary indicators are suffixed with "[=1]" so the reader sees
>   what a unit change means; counts and continuous variables get explicit
>   units; standardized indices are flagged "(SD)".
> 
>   Sandra Rozo
> ==============================================================================*/
. 
. * ---- Economic well-being -----------------------------------------------------
. local lbl_jeea_index_wellbeing  "Well-being index (SD)"
r; t=0.00 12:59:35

. local lbl_labour_income         "Log monthly labor income"
r; t=0.00 12:59:35

. local lbl_gasto_capita          "Log per-capita HH consumption"
r; t=0.00 12:59:35

. local lbl_income_maxhh          "Log HH-max labor income"
r; t=0.00 12:59:35

. local lbl_employed              "Employed [=1]"
r; t=0.00 12:59:35

. 
. * ---- Labor ------------------------------------------------------------------
. local lbl_jeea_index_labor      "Labor index (SD)"
r; t=0.00 12:59:35

. local lbl_formal                "Formal employment [=1]"
r; t=0.00 12:59:35

. local lbl_hora_semana           "Log weekly hours (salaried)"
r; t=0.00 12:59:35

. 
. * ---- Services and rights ----------------------------------------------------
. local lbl_jeea_index_services   "Services index (SD)"
r; t=0.00 12:59:35

. local lbl_sisben                "SISBEN registration [=1]"
r; t=0.00 12:59:35

. local lbl_subs                  "Subsidized health [=1]"
r; t=0.00 12:59:35

. local lbl_bank                  "Savings account [=1]"
r; t=0.00 12:59:35

. local lbl_has_bank_account      "Bank account (incl. savings) [=1]"
r; t=0.00 12:59:35

. local lbl_govtr                 "Govt. transfers [=1]"
r; t=0.00 12:59:35

. 
. * ---- Health -----------------------------------------------------------------
. local lbl_health_pca            "Health PCA index (SD)"
r; t=0.00 12:59:35

. local lbl_anx_depr              "Severe anxiety/depression [=1]"
r; t=0.00 12:59:35

. local lbl_any_anx_depr          "Any anxiety/depression [=1]"
r; t=0.00 12:59:35

. local lbl_vas_score             "Self-rated health (0-100)"
r; t=0.00 12:59:35

. local lbl_phys_problem          "Physical health problem [=1]"
r; t=0.00 12:59:35

. local lbl_chronic_illness       "Chronic illness [=1]"
r; t=0.00 12:59:35

. local lbl_mh_index              "Mental-health composite (SD)"
r; t=0.00 12:59:35

. local lbl_life_satisfaction     "Life satisfaction (0-10)"
r; t=0.00 12:59:35

. local lbl_hi5_inv               "EQ-5D anx/depr (5-low to 1-high)"
r; t=0.00 12:59:35

. 
. * ---- Food security ----------------------------------------------------------
. local lbl_index_food            "Food security index (SD)"
r; t=0.00 12:59:35

. local lbl_skip_meals            "Skipped meals last month [=1]"
r; t=0.00 12:59:35

. local lbl_went_without_food     "Went without food [=1]"
r; t=0.00 12:59:35

. local lbl_protein_days          "Days w/ protein (last week)"
r; t=0.00 12:59:35

. local lbl_food_insecure_seek    "Sought food assistance [=1]"
r; t=0.00 12:59:35

. 
. * ---- Housing ----------------------------------------------------------------
. local lbl_index_housing         "Housing quality index (SD)"
r; t=0.00 12:59:35

. local lbl_adequate_housing      "Adequate housing [=1]"
r; t=0.00 12:59:35

. local lbl_has_electricity       "Has electricity [=1]"
r; t=0.00 12:59:35

. local lbl_has_water             "Has running water [=1]"
r; t=0.00 12:59:35

. local lbl_has_sewage            "Has sewage [=1]"
r; t=0.00 12:59:35

. 
. * ---- Integration ------------------------------------------------------------
. local lbl_index_integration     "Integration index (SD)"
r; t=0.00 12:59:35

. local lbl_belonging             "Sense of belonging (1-4)"
r; t=0.00 12:59:35

. local lbl_feel_integrated       "Feels integrated (1-4)"
r; t=0.00 12:59:35

. local lbl_trust_col             "Trust in Colombians (out-group, 1-5)"
r; t=0.00 12:59:35

. local lbl_trust_ven             "Trust in Venezuelans (in-group, 1-5)"
r; t=0.00 12:59:35

. local lbl_general_trust         "General trust in people (1-5)"
r; t=0.00 12:59:35

. local lbl_venezuelans_help_me   "Venezuelans help me (1-5)"
r; t=0.00 12:59:35

. local lbl_trust_index           "Prosocial behaviors composite (SD)"
r; t=0.00 12:59:35

. local lbl_col_friends           "Number Colombian friends"
r; t=0.00 12:59:35

. local lbl_community_org         "Belongs to community org [=1]"
r; t=0.00 12:59:35

. local lbl_connection_colombia   "Strong connection to Colombia [=1]"
r; t=0.00 12:59:35

. local lbl_colombians_help_me    "Colombians help me (1-5)"
r; t=0.00 12:59:35

. local lbl_count_on_col          "Can count on Colombians (1-5)"
r; t=0.00 12:59:35

. 
. * ---- Discrimination ---------------------------------------------------------
. local lbl_index_discrim         "Discrimination index (SD)"
r; t=0.00 12:59:35

. local lbl_discrim_ever          "Ever discriminated against [=1]"
r; t=0.00 12:59:35

. local lbl_discrim_freq          "Discrimination frequency (1-5)"
r; t=0.00 12:59:35

. local lbl_filed_complaint       "Filed discrimination complaint [=1]"
r; t=0.00 12:59:35

. 
. * ---- Migration intentions ---------------------------------------------------
. local lbl_intend_stay           "Intends to stay in Colombia [=1]"
r; t=0.00 12:59:35

. local lbl_plan_stay_5yr         "Plans to stay 5+ years [=1]"
r; t=0.00 12:59:35

. local lbl_considered_return_ven "Considered returning to Venezuela [=1]"
r; t=0.00 12:59:35

. 
. * ---- COVID -----------------------------------------------------------------
. local lbl_index_covid           "COVID resilience index (SD)"
r; t=0.00 12:59:35

. local lbl_covid_income_down     "Income fell during COVID [=1]"
r; t=0.00 12:59:35

. local lbl_covid_eviction        "Faced eviction during COVID [=1]"
r; t=0.00 12:59:35

. local lbl_covid_received_aid    "Received COVID aid [=1]"
r; t=0.00 12:59:35

. 
. * ---- Education -------------------------------------------------------------
. local lbl_currently_studying    "Currently studying [=1]"
r; t=0.00 12:59:35

. local lbl_currently_enrolled    "Currently enrolled in school [=1]"
r; t=0.00 12:59:35

. local lbl_degree_validated      "Foreign degree validated [=1]"
r; t=0.00 12:59:35

. 
. * ---- Children --------------------------------------------------------------
. local lbl_child_skip_meals      "Child skipped meals [=1]"
r; t=0.00 12:59:35

. local lbl_child_vaccinated      "Child vaccinated [=1]"
r; t=0.00 12:59:35

. local lbl_child_worked          "Child worked [=1]"
r; t=0.00 12:59:35

. 
. * ---- Remittances -----------------------------------------------------------
. local lbl_index_remit           "Remittances index (SD)"
r; t=0.00 12:59:35

. local lbl_remit_now             "Sends remittances now [=1]"
r; t=0.00 12:59:35

. local lbl_remit_to_parents      "Remits to parents [=1]"
r; t=0.00 12:59:35

. 
. * ---- Financial access and digital ------------------------------------------
. local lbl_index_fin_access      "Financial access index (SD)"
r; t=0.00 12:59:35

. local lbl_index_digital         "Digital access index (SD)"
r; t=0.00 12:59:35

. local lbl_has_savings_account   "Has savings account [=1]"
r; t=0.00 12:59:35

. local lbl_has_mobile_money      "Has mobile money [=1]"
r; t=0.00 12:59:35

. local lbl_has_smartphone        "Has smartphone [=1]"
r; t=0.00 12:59:35

. local lbl_has_internet          "Has internet [=1]"
r; t=0.00 12:59:35

. local lbl_apps_whatsapp         "Uses WhatsApp [=1]"
r; t=0.00 12:59:35

. 
. * ============================================================================
. *  PREDETERMINED COVARIATES (used for balance tests and as RD controls)
. * ============================================================================
. 
. * ---- Demographics ----------------------------------------------------------
. local lbl_female                "Female [=1]"
r; t=0.00 12:59:35

. local lbl_age_panel             "Age (years)"
r; t=0.00 12:59:35

. local lbl_yrseduc               "Years of education"
r; t=0.00 12:59:35

. local lbl_time_col              "Years in Colombia"
r; t=0.00 12:59:35

. local lbl_child_venez           "Has child born in Venezuela [=1]"
r; t=0.00 12:59:35

. 
. * ---- Pre-migration economic conditions (in Venezuela) ----------------------
. local lbl_jobopp                "Had a job offer in Colombia [=1]"
r; t=0.00 12:59:35

. local lbl_labven                "Worked in Venezuela [=1]"
r; t=0.00 12:59:35

. local lbl_typeworkven1          "Worked in agric./manual (VZ) [=1]"
r; t=0.00 12:59:35

. local lbl_typeworkven2          "Worked in services (VZ) [=1]"
r; t=0.00 12:59:35

. local lbl_typeworkven3          "Worked in skilled occ. (VZ) [=1]"
r; t=0.00 12:59:35

. local lbl_written_cont          "Had written contract (VZ) [=1]"
r; t=0.00 12:59:35

. local lbl_average               "Avg. days worked / week (VZ)"
r; t=0.00 12:59:35

. local lbl_smartven              "Owned smartphone in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_owner                 "Homeowner in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_electven              "Had electricity in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_waterven              "Had running water in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_sewageven             "Had sewage in VZ [=1]"
r; t=0.00 12:59:35

. 
. * ---- Family / migration network -------------------------------------------
. local lbl_hhven_parents         "Parents born in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_hhven_spouse          "Spouse born in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_hhven_other           "Other HH members born in VZ [=1]"
r; t=0.00 12:59:35

. local lbl_healthmig             "Healthy at migration [=1]"
r; t=0.00 12:59:35

. local lbl_frdfam                "Network in Colombia [=1]"
r; t=0.00 12:59:35

. r; t=0.00 12:59:35

. 
. * Helper to format a coefficient with stars and a SE row
. capture program drop _fmt_cell
r; t=0.00 12:59:35

. program define _fmt_cell, rclass
  1.     args coef se p
  2.     local s ""
  3.     if "`p'" != "." & `p' < 0.10 local s "*"
  4.     if "`p'" != "." & `p' < 0.05 local s "**"
  5.     if "`p'" != "." & `p' < 0.01 local s "***"
  6.     local cell_b = cond("`coef'" == ".", "", string(`coef', "%6.3f") + "`s'")
  7.     local cell_se = cond("`se'" == ".", "", "(" + string(`se', "%6.3f") + ")")
  8.     return local b  "`cell_b'"
  9.     return local se "`cell_se'"
 10. end
r; t=0.00 12:59:35

. 
. /*==============================================================================
>   PART 3: BUILD ONE PDF PER 3-PANEL CHUNK
> ==============================================================================*/
. 
. local panels_per_pdf = 3
r; t=0.00 12:59:35

. local n_done = 0
r; t=0.00 12:59:35

. local n_panels : word count `panels'
r; t=0.00 12:59:35

. local pdfnum = 0
r; t=0.00 12:59:35

. 
. while `n_done' < `n_panels' {
  2.     local ++pdfnum
  3.     putpdf clear
  4.     putpdf begin, pagesize(letter) margin(left, 0.7in) margin(right, 0.7in)
  5.     putpdf paragraph, halign(center)
  6.     putpdf text ("Table 1.`pdfnum': Fuzzy RD of PEP-RAMV on Outcomes"), bold font(, 13)
  7.     putpdf paragraph, halign(center)
  8.     putpdf text ("Wave 1 (2020, short-run) and Wave 2 (2021, medium-run)"), italic font(, 11)
  9. 
.     local stop_idx = min(`n_done' + `panels_per_pdf', `n_panels')
 10.     local idx = `n_done' + 1
 11.     while `idx' <= `stop_idx' {
 12.         local p : word `idx' of `panels'
 13.         local title "`title_`p''"
 14.         local outvars `out_`p''
 15. 
.         * Count rows: 1 header + 1 sub-header + 1 group title + 2 per outcome + 1 N row
.         local n_outs : word count `outvars'
 16.         local n_rows = 4 + 2 * `n_outs' + 1
 17. 
.         putpdf paragraph
 18.         putpdf table aer = (`n_rows', 5), border(all, nil) ///
>             border(top, single) border(bottom, single)
 19. 
.         * Header rows
.         putpdf table aer(1,1) = ("")
 20.         putpdf table aer(1,2) = ("(1)"), bold halign(center)
 21.         putpdf table aer(1,3) = ("(2)"), bold halign(center)
 22.         putpdf table aer(1,4) = ("(3)"), bold halign(center)
 23.         putpdf table aer(1,5) = ("(4)"), bold halign(center)
 24. 
.         putpdf table aer(2,1) = ("")
 25.         putpdf table aer(2,2) = ("Wave 1"), italic halign(center)
 26.         putpdf table aer(2,3) = ("Wave 1"), italic halign(center)
 27.         putpdf table aer(2,4) = ("Wave 2"), italic halign(center)
 28.         putpdf table aer(2,5) = ("Wave 2"), italic halign(center)
 29. 
.         putpdf table aer(3,1) = ("")
 30.         putpdf table aer(3,2) = ("No ctrls"), italic halign(center) font(, 9)
 31.         putpdf table aer(3,3) = ("+ Ctrls"),  italic halign(center) font(, 9)
 32.         putpdf table aer(3,4) = ("No ctrls"), italic halign(center) font(, 9)
 33.         putpdf table aer(3,5) = ("+ Ctrls"),  italic halign(center) font(, 9)
 34. 
.         * Panel title row
.         putpdf table aer(4,1) = ("Panel `p'. `title'"), bold
 35. 
.         * Outcome rows
.         local r = 4
 36.         foreach v of local outvars {
 37.             local lbl : copy local lbl_`v'
 38.             if "`lbl'" == "" local lbl "`v'"
 39. 
.             * Look up the row in rd_wide
.             preserve
 40.             use `rd_wide', clear
 41.             keep if outcome == "`v'"
 42.             if _N == 1 {
 43.                 local b1n = coefW1_no_ctrls[1]
 44.                 local s1n = seW1_no_ctrls[1]
 45.                 local p1n = pW1_no_ctrls[1]
 46.                 local b1c = coefW1_with_ctrls[1]
 47.                 local s1c = seW1_with_ctrls[1]
 48.                 local p1c = pW1_with_ctrls[1]
 49.                 local b2n = coefW2_no_ctrls[1]
 50.                 local s2n = seW2_no_ctrls[1]
 51.                 local p2n = pW2_no_ctrls[1]
 52.                 local b2c = coefW2_with_ctrls[1]
 53.                 local s2c = seW2_with_ctrls[1]
 54.                 local p2c = pW2_with_ctrls[1]
 55.                 local n1c = n_effW1_with_ctrls[1]
 56.                 local n2c = n_effW2_with_ctrls[1]
 57.             }
 58.             else {
 59.                 local b1n .
 60.                 local s1n .
 61.                 local p1n .
 62.                 local b1c .
 63.                 local s1c .
 64.                 local p1c .
 65.                 local b2n .
 66.                 local s2n .
 67.                 local p2n .
 68.                 local b2c .
 69.                 local s2c .
 70.                 local p2c .
 71.                 local n1c .
 72.                 local n2c .
 73.             }
 74.             restore
 75. 
.             * Row 1: outcome name + coefs
.             local ++r
 76.             _fmt_cell `b1n' `s1n' `p1n'
 77.             local cell_1n_b "`r(b)'"
 78.             _fmt_cell `b1c' `s1c' `p1c'
 79.             local cell_1c_b "`r(b)'"
 80.             _fmt_cell `b2n' `s2n' `p2n'
 81.             local cell_2n_b "`r(b)'"
 82.             _fmt_cell `b2c' `s2c' `p2c'
 83.             local cell_2c_b "`r(b)'"
 84. 
.             putpdf table aer(`r',1) = ("  `lbl'"), font(, 10)
 85.             putpdf table aer(`r',2) = ("`cell_1n_b'"), halign(center) font(, 10)
 86.             putpdf table aer(`r',3) = ("`cell_1c_b'"), halign(center) font(, 10)
 87.             putpdf table aer(`r',4) = ("`cell_2n_b'"), halign(center) font(, 10)
 88.             putpdf table aer(`r',5) = ("`cell_2c_b'"), halign(center) font(, 10)
 89. 
.             * Row 2: SE in parens
.             local ++r
 90.             _fmt_cell `b1n' `s1n' `p1n'
 91.             local cell_1n_se "`r(se)'"
 92.             _fmt_cell `b1c' `s1c' `p1c'
 93.             local cell_1c_se "`r(se)'"
 94.             _fmt_cell `b2n' `s2n' `p2n'
 95.             local cell_2n_se "`r(se)'"
 96.             _fmt_cell `b2c' `s2c' `p2c'
 97.             local cell_2c_se "`r(se)'"
 98. 
.             putpdf table aer(`r',1) = ("")
 99.             putpdf table aer(`r',2) = ("`cell_1n_se'"), halign(center) font(, 9) italic
100.             putpdf table aer(`r',3) = ("`cell_1c_se'"), halign(center) font(, 9) italic
101.             putpdf table aer(`r',4) = ("`cell_2n_se'"), halign(center) font(, 9) italic
102.             putpdf table aer(`r',5) = ("`cell_2c_se'"), halign(center) font(, 9) italic
103.         }
104. 
.         * N row at the bottom (use the last outcome's N as a representative)
.         local ++r
105.         putpdf table aer(`r',1) = ("Observations (effective, +X)"), italic font(, 9)
106.         putpdf table aer(`r',2) = ("")
107.         putpdf table aer(`r',3) = ("`n1c'"), halign(center) italic font(, 9)
108.         putpdf table aer(`r',4) = ("")
109.         putpdf table aer(`r',5) = ("`n2c'"), halign(center) italic font(, 9)
110. 
.         local idx = `idx' + 1
111.     }
112. 
.     * Bottom note
.     putpdf paragraph
113.     putpdf text ("Notes: Each cell reports the fuzzy RD coefficient from rdrobust at the MSE-optimal bandwidth 
> (triangular kernel), with conventional standard errors in parentheses. Significance: * p<0.10, ** p<0.05, *** p<0.
> 01. The running variable is days from the RAMV deadline (June 8, 2018); households arriving strictly before the de
> adline are eligible. Treatment is the household PEP indicator for HH-level outcomes (consumption, income_maxhh, ba
> nk, govt transfers, remittances, financial access, digital) and the individual PEP indicator for individual outcom
> es. Specifications labeled '+ Ctrls' include JEEA's pre-migration covariate set (parents/spouse/other Venezuelan, 
> job opportunity, labor in Venezuela, type of work, written contract, average days of work, years of education, hea
> lth in Venezuela, family/friends in Colombia, smartphone, owner status, electricity/water/sewage in Venezuela, fem
> ale, age, child, time in Colombia). Outcomes labeled '(SD)' are standardized to the within-wave control mean and S
> D; outcomes labeled '[=1]' are binary indicators (so coefficients are percentage-point changes in probability); ot
> her outcomes are in the natural units indicated."), italic font(, 8)
114. 
.     putpdf save "$out/07d_AER_Table_RD_part`pdfnum'.pdf", replace
115. 
.     local n_done = `stop_idx'
116. }
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(65 observations deleted)
(64 observations deleted)
successfully created "C:/Users/wb614536/Downloads/replication/replication/outputs/07d_AER_Table_RD_part1.pdf"
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
successfully created "C:/Users/wb614536/Downloads/replication/replication/outputs/07d_AER_Table_RD_part2.pdf"
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
successfully created "C:/Users/wb614536/Downloads/replication/replication/outputs/07d_AER_Table_RD_part3.pdf"
(65 observations deleted)
(65 observations deleted)
(note: table aer has been redefined)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(64 observations deleted)
(65 observations deleted)
(64 observations deleted)
successfully created "C:/Users/wb614536/Downloads/replication/replication/outputs/07d_AER_Table_RD_part4.pdf"
r; t=0.70 12:59:36

. 
. * Headline file
. copy "$out/07d_AER_Table_RD_part1.pdf" "$out/07d_AER_Table_RD.pdf", replace
(file ../outputs/07d_AER_Table_RD.pdf not found)
r; t=0.01 12:59:36

. 
. * LaTeX skeleton
. file open tex using "$out/07d_AER_Table_RD.tex", write replace
(file ../outputs/07d_AER_Table_RD.tex not found)
r; t=0.00 12:59:36

. file write tex "\documentclass[11pt]{article}\usepackage[margin=1in]{geometry}\usepackage{booktabs,threeparttable}
> " _n
r; t=0.00 12:59:36

. file write tex "\title{Fuzzy RD of PEP-RAMV on Outcomes (AER-style)}\author{Sandra Rozo}\date{\today}\begin{docume
> nt}\maketitle" _n
r; t=0.00 12:59:36

. file write tex "See 07d\_AER\_Table\_RD\_part*.pdf for the rendered tables." _n
r; t=0.00 12:59:36

. file write tex "Underlying coefficients: 07\_RD\_W1\_W2\_results.txt." _n
r; t=0.00 12:59:36

. file write tex "\end{document}" _n
r; t=0.00 12:59:36

. file close tex
r; t=0.00 12:59:36

. 
. di ""

r; t=0.00 12:59:36

. di "  PDF saved:  $out/07d_AER_Table_RD.pdf (and _part*.pdf)"
  PDF saved:  ../outputs/07d_AER_Table_RD.pdf (and _part*.pdf)
r; t=0.00 12:59:36

. di "  TeX saved:  $out/07d_AER_Table_RD.tex"
  TeX saved:  ../outputs/07d_AER_Table_RD.tex
r; t=0.00 12:59:36

. di "  Done."
  Done.
r; t=0.00 12:59:36

. 
. log close
      name:  <unnamed>
       log:  C:\Users\wb614536\Downloads\replication\replication\code\../outputs/07d_AER_Tables_log.txt
  log type:  text
 closed on:  25 Jun 2026, 12:59:36
--------------------------------------------------------------------------------------------------------------------
